package com.czk.netty.netty.rpc.client;

import com.czk.netty.netty.rpc.pub.HelloService;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/1/30 15:24
 */
public class ClientBootstrap {
    private static final String providerName="HelloService#hello#";

    public static void main(String[] args) {
        // 创建消费者
        NettyClient customer=new NettyClient();
        // 拿到代理对象
        HelloService service = (HelloService) customer.getBean(HelloService.class, providerName);
        // 得到返回结果
        String dubbo = service.hello("你好 dubbo");
        System.out.println(dubbo);
    }
}
